//
//  UIView+ZXHelper.h
//  ShiChunTang
//
//  Created by simon on 13/11/1.
//  Copyright (c) 2013年 yinyuetai.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIView+ZXBorder.h"

NS_ASSUME_NONNULL_BEGIN

@interface UIView (ZXHelper)


#pragma mark - getter


/**
 * @brief 获取UIView的对应controller
 */

- (nullable UIViewController *)zx_getResponderViewController;



- (float)zx_getValueFortapGestureOnSliderObject:(UISlider *)slider  withGesture:(UITapGestureRecognizer *)gesture;



/**
 递归获取所有子视图
 例如：[UIView zx_NSLogSubviewsFromView:self.navigationController.navigationBar andLevel:1];
 @param view 要遍历的view
 @param level 从第几级开始遍历
 */
+ (void)zx_NSLogSubviewsFromView:(UIView *)view andLevel:(NSInteger)level;



+ (id)zx_viewFromNib;


#pragma mark - perform

/**
 * @brief 关闭键盘方法；
 * @param aClass  父视图
 */
- (void)zx_performKeyboardDismissWithClass:(Class)aClass;

@end


NS_ASSUME_NONNULL_END

